package com.ruoyi.monthstudy.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 每月学习对象 month_study
 * 
 * @author ruoyi
 * @date 2023-09-27
 */
public class MonthStudy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 封面 */
    @Excel(name = "封面")
    private String image;

    /** 标题 */
    @Excel(name = "标题")
    private String title;

    /** 1党员/2党组织 */
    @Excel(name = "1党员/2党组织")
    private Integer type;

    /** 最新一次推送时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最新一次推送时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newTime;

    /** 是否推送 */
    @Excel(name = "是否推送")
    private String isPush;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setImage(String image) 
    {
        this.image = image;
    }

    public String getImage() 
    {
        return image;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setNewTime(Date newTime) 
    {
        this.newTime = newTime;
    }

    public Date getNewTime() 
    {
        return newTime;
    }
    public void setIsPush(String isPush) 
    {
        this.isPush = isPush;
    }

    public String getIsPush() 
    {
        return isPush;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("image", getImage())
            .append("title", getTitle())
            .append("type", getType())
            .append("newTime", getNewTime())
            .append("createTime", getCreateTime())
            .append("isPush", getIsPush())
            .toString();
    }
}
